import React, { Component } from 'react';
import Home from '../web/home'
import List from '../web/list'
import About from '../web/about'
import New from '../web/new'
import { Route, Switch} from "react-router-dom";

class RouterIndex extends Component {
  render() {
    return (
        <Switch>
             <Route path="/home" component={Home}/>
              <Route path="/list" component={List}/>
              <Route path="/about" component={About}/>
              <Route path="/new" component={New}/>
              <Route path="/" component={Home}/>
        </Switch>

    );
  }
}

export default RouterIndex;
